<template>
	<view class="themeItem" @click="doCall(item.name)">
	    <navigator :url="item.navUrl" class="box">
			<image class="pic" mode="aspectFill" :src="item.srcUrl"></image>
			<text class="title">{{item.name}}</text>
		</navigator>
	</view>
</template>

<script setup>
	 defineProps(["name","item"])
	 

	 const doCall=(name) =>{
		 if(name=="急救中心"){
			 uni.makePhoneCall({
			 	phoneNumber:"120"
			 })
		 }
		 
	 }

</script>

<style lang="scss" scoped > 
.themeItem{
	height: 100rpx;
	width: 100rpx;
	margin-right: auto;
	margin-left: auto;
	.title{
		font-size: 25rpx;
	}
	.pic{
		height: 110rpx;
		width: 110rpx;
	}
}
</style>